package gtkwire.widget.utils;

/**
*Used to set listener notification policies in GtkRange and subclasses.
*Documentation for this class is from the gtk+ .c file that this class binds to. See original file for copyrights.
*/
public class GtkUpdatePolicy
{
	/**
	*Anytime the range slider is moved, the range value will change and the value_changed signal will be emitted.
	*/
	public static final GtkUpdatePolicy UPDATE_CONTINUOUS = new GtkUpdatePolicy("GTK_UPDATE_CONTINUOUS");
	/**
	*Value will be updated after a brief timeout where no slider motion occurs, so updates are spaced by a short time rather than continuous.
	**/
	public static final GtkUpdatePolicy UPDATE_DISCONTINUOUS = new GtkUpdatePolicy("GTK_UPDATE_DISCONTINUOUS");
	/**
	*Value will only be updated when the user releases the button and ends the slider drag operation.
	*/
	public static final GtkUpdatePolicy UPDATE_DELAYED = new GtkUpdatePolicy("GTK_UPDATE_DELAYED");

	private String mode;

	private GtkUpdatePolicy( String mode )
	{
		this.mode = mode;
	}

	public String getMode(){ return mode; }

}//end class
